#include<stdio.h>
int main(){

unsigned long long int a,b;
unsigned long long int t;
unsigned long long int m,n;

scanf("%llu %llu",&a,&b);
m=a;
n=b;

/*
a=12, b=18
a   b    t
12  18   12
18  12   6
12  6    0
6   0      
*/
while(b!=0){
    t=a%b;
    a=b;
    b=t;
}
unsigned long long p=m/a,q=n/a;
printf("%llu",p*q);
return 0;
}
